﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserPayList.aspx.cs" Inherits="Admin_UserPayList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/main-admin.css" rel="stylesheet" type="text/css" />

    <script src="../Jscript/jquery-1.3.2.min.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="body-frame">
        <!-- header begin here -->
        <div class="header-panel">
            <div class="logo-header">
                <a href="index.html">
                    <img src="../images/logo.jpg" alt="UPEX联合快递" width="67" height="79" border="0" /></a></div>
            <div class="logo-right-header">
                <div class="slog">
                    <img src="../images/slog.gif" alt="UPEX联合快递" width="218" height="57" />
                </div>
                <div class="header-corner">
                    Http://www.us2cn.net<br />
                    2570 Corporate Place. #E103, Monterey Park, CA 91754<br />
                    Email: info@upexusa.net &nbsp; &nbsp; Phone: 1-888-869-0979
                </div>
                <div class="header-bar">
                </div>
            </div>
        </div>
        <!-- header end here -->
        <!-- body begin here -->
        <div style="margin: 10px auto; width: 1000px; height: 190px;">
            <div style="border: 1px solid #666; width: 255px; height: 150px; margin-right: 0px;
                float: left; margin-right: 20px; padding: 15px;">
                <b style="font-size: 20px;">账单发给：</b>
                <p>
                    <asp:Label ID="username" runat="server"></asp:Label><br />
                    <asp:Label ID="gongsilb" runat="server"></asp:Label><br />
                    <asp:Label ID="dizhilb" runat="server"></asp:Label><br />
                    <asp:Label ID="dianhua" runat="server"></asp:Label><br />
                    <asp:Label ID="chengshi" runat="server"></asp:Label>
                    ,
                    <asp:Label ID="zhoushen" runat="server"></asp:Label>
                    <asp:Label ID="youbian" runat="server"></asp:Label><br />
                    <asp:Label ID="guojia" runat="server"></asp:Label>
                </p>
            </div>
            <div style="border: 1px solid #666; width: 660px; height: 150px; float: left; padding: 15px;">
                <strong style="font-size: 20px;">帐单周期：<asp:Label ID="sdate" runat="server"></asp:Label>
                    -
                    <asp:Label ID="edate" runat="server"></asp:Label>
                    付款期限：<asp:Label ID="qixiandate" runat="server"></asp:Label>
                </strong>
                <p>
                    上期结余：<asp:Label ID="shangqijieyu" runat="server"></asp:Label><br />
                    <br />
                    本期重量收费：<asp:Label ID="zhongliangfei" runat="server"></asp:Label>
                    &nbsp; &nbsp; 垫付费用：<asp:Label ID="dianfufei" runat="server"></asp:Label>
                    &nbsp; &nbsp; 代购费：<asp:Label ID="daigoufei" runat="server"></asp:Label>
                    &nbsp; &nbsp; 包装费：<asp:Label ID="baozhuangfei" runat="server"></asp:Label>
                    &nbsp; &nbsp; 关税：<asp:Label ID="guanshuilb" runat="server"></asp:Label>
                    &nbsp; &nbsp; 保险费：<asp:Label ID="baoxianfei" runat="server"></asp:Label>
                    &nbsp; &nbsp; 其它收费：<asp:Label ID="qitafei" runat="server"></asp:Label>
                    &nbsp; &nbsp; 优惠：<asp:Label ID="youhuilb" runat="server"></asp:Label>
                </p>
                <strong>本期结余：<asp:Label ID="benqijieyu" runat="server"></asp:Label></strong>
            </div>
        </div>
        <div class="body-panel-detail">
            <div class="trans-search-title">
                <div class="trans-search-no">
                    货运单号</div>
                <div class="trans-search-date">
                    制单时间</div>
                <div class="trans-search-status">
                    货运状态</div>
                <div class="trans-search-sender" style="width: 100px">
                    寄件人</div>
                <div class="trans-search-rec" style="width: 100px">
                    收件人</div>
                <div class="trans-search-case">
                    件数</div>
                <div class="trans-search-wt" style="width: 60px">
                    磅</div>
                <div class="trans-search-ref">
                    参考号</div>
                <div class="trans-search-price">
                    收费</div>
                <div class="trans-search-price">
                    付款</div>
            </div>
            <asp:Repeater ID="billlist" runat="server">
                <ItemTemplate>
                    <%# ((Container.ItemIndex + 1) % 2) == 0 ? "<div    class='trans-search-line result-bg'>" : "<div    class='trans-search-line'>"%>
                    <div class="trans-search-no mtop3">
                        <a href="#">
                            <%#Eval("TrackingNo")%></a></div>
                    <div class="trans-search-date mtop3">
                        <%# Convert.ToDateTime(Eval("CreateDate").ToString()).ToString("yyyy/MM/dd")%></div>
                    <div class="trans-search-status mtop3">
                        <%#Eval("UPEXState")%></div>
                    <div class="trans-search-sender mtop3" title=' <%#Eval("Sender")%>' style="width: 100px">
                        <%#  Ysb.Components.StrHelper.GetSubString(Eval("Sender").ToString(), 10)%>
                    </div>
                    <div class="trans-search-rec mtop3" title='<%#Eval("Receiver")%>' style="width: 100px">
                        <%#  Ysb.Components.StrHelper.GetSubString(Eval("Receiver").ToString(), 5)%>
                    </div>
                    <div class="trans-search-case mtop3">
                        <%#Eval("NoOfPiece").ToString() == "0" ? "" : Eval("NoOfPiece").ToString()%></div>
                    <div class="trans-search-wt mtop3" style="width: 60px">
                        <%# Eval("sep").ToString() == "0" ? Eval("ChargedWt").ToString() : Eval("SepChargedWt").ToString()%></div>
                    <div class="trans-search-ref mtop3">
                        <%#Eval("FlightNo")%></div>
                    <div class="trans-search-price mtop3">
                  
    <%# Eval("sep").ToString() == "0" ? Eval("Total").ToString() : Eval("SepTotal").ToString()%>
</div>
                    <div class="trans-search-price mtop3">
                        <%#Eval("Pay")%>
                    </div>
                    </div>
                    <div class="trans-search-sep" id='div<%#Eval("TrackingNo").ToString()%>' style='<%#Toint(Eval("NoOfPiece").ToString())<2?" display:none": ""  %>'>
                        <asp:Repeater ID="sep_list" runat="server" DataSource='<%#getrpro( Eval("TrackingNo").ToString()) %>'>
                            <ItemTemplate>
                                <div class="trans-search-line">
                                    <div class="trans-search-no mtop3">
                                        &nbsp; <a href="#">
                                            <%#Eval("SepNo")%></a></div>
                                    <div class="trans-search-date mtop3">
                                        <%#Convert.ToDateTime( Eval("CreateDate").ToString()).ToShortDateString()%></div>
                                    <div class="trans-search-status mtop3">
                                        <%#Eval("SBState")%></div>
                                    <div class="trans-search-sender mtop3" title='<%#Eval("SendBy")%>' style="width: 100px">
                                      
                                        
                                               <%#  Ysb.Components.StrHelper.GetSubString(Eval("SendBy").ToString(), 10)%>
                                        </div>
                                    <div class="trans-search-rec mtop3" style="width: 100px">
                            
                                        
                                                    <%#  Ysb.Components.StrHelper.GetSubString(Eval("CHNReceiver").ToString(), 5)%>
                                        </div>
                                    <div class="trans-search-case mtop3">
                                        <%#Eval("Pieces")%></div>
                                    <div class="trans-search-wt mtop3" style="width: 60px">
                                        <%#Eval("ChargedWt")%></div>
                                    <div class="trans-search-ref mtop3">
                                        <%#Eval("FlightNo")%>&nbsp;</div>
                                    <div class="trans-search-type mtop3">
                                        &nbsp;</div>
                                    <div class="trans-search-price mtop3">
                                        &nbsp;
                                    </div>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
    <!-- body end here -->
    <asp:GridView ID="goi" runat="server">
    </asp:GridView>
    </div>
    </form>
</body>
</html>
